package two_xia.ex9.Demo03;

class TerminalExpression implements Expression {
    private String data;

    public TerminalExpression(String data) {
        this.data = data;
    }

    public void interpret(String context) {
        // 伪结果输出
        System.out.println("TerminalExpression: " + data);
    }
}